package com.cmwa.solution.business.register.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cmwa.solution.base.entity.SearchParam;
import com.cmwa.solution.business.register.dao.SalesDataManageDao;
import com.cmwa.solution.business.register.entity.ClearRecordVo;
import com.cmwa.solution.business.register.service.SalesDataManageService;

/**
 * @author ex-wuh2
 *	销售数据管理业务层
 */
@Service
public class SalesDataManageServiceImpl implements SalesDataManageService {

	@Autowired
	private SalesDataManageDao salesDataManageDao;
	
	@Override
	public List<ClearRecordVo> queryClearRecordList(String serialNo) {
		return salesDataManageDao.queryClearRecordList(serialNo);
	}

	@Override
	public List<ClearRecordVo> queryFileInfoList(String serialNo, String clearStep) {
		return salesDataManageDao.queryFileInfoList(serialNo, clearStep);
	}

	@Override
	public ClearRecordVo querySuccessTime(String serialNo) {
		return salesDataManageDao.querySuccessTime(serialNo);
	}

	@Override
	public void truncateData() {
		salesDataManageDao.truncateData();
	}

	@Override
	public void batchInsertRecordVo(List<ClearRecordVo> list) {
		salesDataManageDao.batchInsertRecordVo(list);
	}

	@Override
	public String getSequence() {
		return salesDataManageDao.getSequence();
	}

	@Override
	public ClearRecordVo queryClearExceptionRecord(SearchParam sp) {
		ClearRecordVo items = salesDataManageDao.queryClearExceptionRecord(sp);
		return items;
	}
	
	@Override
	public List<ClearRecordVo> queryExceptionList(SearchParam sp) {
		return salesDataManageDao.queryExceptionList(sp);
	}
}
